package com.diamond.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TBaseFunction entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_base_function", catalog = "diamond")
public class TBaseFunction implements java.io.Serializable {

	// Fields

	private Long functionId;
	private String functionCode;
	private String functionName;
	private String functionUrl;
	private String functionIcon;

	// Constructors

	/** default constructor */
	public TBaseFunction() {
	}

	/** full constructor */
	public TBaseFunction(String functionCode, String functionName, String functionUrl, String functionIcon) {
		this.functionCode = functionCode;
		this.functionName = functionName;
		this.functionUrl = functionUrl;
		this.functionIcon = functionIcon;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "function_id", unique = true, nullable = false)
	public Long getFunctionId() {
		return this.functionId;
	}

	public void setFunctionId(Long functionId) {
		this.functionId = functionId;
	}

	@Column(name = "function_code", length = 100)
	public String getFunctionCode() {
		return this.functionCode;
	}

	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	@Column(name = "function_name", length = 100)
	public String getFunctionName() {
		return this.functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
	
	@Column(name = "function_url", length = 200)
	public String getFunctionUrl() {
		return functionUrl;
	}

	public void setFunctionUrl(String functionUrl) {
		this.functionUrl = functionUrl;
	}

	@Column(name = "function_icon", length = 200)
	public String getFunctionIcon() {
		return functionIcon;
	}

	public void setFunctionIcon(String functionIcon) {
		this.functionIcon = functionIcon;
	}
}